@extends('admin.admin')

@section('content')
        <!-- Content Header (Page header) -->
<section class="content-header">
    <h1>
        用户管理
        <small>用户列表</small>
        <small>积分详情</small>
    </h1>
    <ol class="breadcrumb">
        <li><a href="/admin"><i class="fa fa-dashboard"></i> 控制面板</a></li>
        <li ><a href="/admin/user">用户管理</a></li>
        <li ><a href="/admin/user">用户列表</a></li>
        <li class="active">积分详情</li>
    </ol>
</section>

<!-- Main content -->
<section class="content">

    <div class="row">
        <div class="col-xs-12">
            <div class="box box-primary">
                <div class="box-header">
                    <h3 class="box-title">用户积分查看</h3>
                </div>
                <!-- /.box-header -->
                <div class="box-body table-responsive no-padding">
                    <table class="table table-hover">
                        <tr>
                            <th>用户ID</th>
                            <th>增加或减少</th>
                            <th>数量</th>
                            <th>原因</th>
                            <th style="width: 150px;">时间</th>
                        </tr>
                        @foreach ($userPointLogs as $userPointLog)
                            <tr>
                                <td>{{$userPointLog->user_id}}</td>
                                <td>{{$userPointLog->type}}</td>
                                <td>{{$userPointLog->number}}</td>
                                <td>{{$userPointLog->reason}}</td>
                                <td>{{$userPointLog->update_time}}</td>
                            </tr>
                        @endforeach
                    </table>
                </div>
                <!-- /.box-body -->
            </div>
            <!-- /.box -->
            {!! $userPointLogs->render() !!}

        </div>
    </div>



</section>
<!-- /.content -->

<script>
    $('.btn-danger').on('click',function(){
        console.log('11');
    });
</script>
@endsection